﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class DeliveryRobot:Robot
    {
        public int hours { get; set; }
        public DeliveryRobot(string name, int hours):base(name) 
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("传菜机器人启动！！！");
            Console.WriteLine("连续工作时长是：{0}小时。",this.hours);
        }
       
    }
}
